<?php
    require_once("include/common.inc.php");
                        
    $query = "SELECT * FROM user"; 
    $rows = getRows($query);

    printfHeader("File List");
    fileSearch();

    if(isset($_POST["email"]) && $_POST["email"] !== "")
      $email = $_POST["email"];  
    else
      $email = "";
    if(isset($_POST["extension"]) && $_POST["extension"] !== "")
      $extension = $_POST["extension"];
    else
      $extension = "";

    printfFilesList($rows, $email, $extension);